
import 'package:json_annotation/json_annotation.dart';
import 'package:reabampos/src/reabam/operation/bean/base/rb_request.dart';
import 'package:reabampos/src/reabam/operation/bean/base/rb_response.dart';

//定义生成的文件 flutter pub run build_runner build --delete-conflicting-outputs
part 'bean_retry_order.g.dart';

@JsonSerializable(explicitToJson: true)
class Request_retry_pos_order extends RBBaseRequest{

   List<String>? fastOrderNos;
   String? groupId;

  Request_retry_pos_order(
      {
        this.fastOrderNos,
        this.groupId,
      }):super();

   //添加固定格式
   factory Request_retry_pos_order.fromJson(Map<String, dynamic> json) => _$Request_retry_pos_orderFromJson(json);
   @override
  Map<String, dynamic> toJson() => _$Request_retry_pos_orderToJson(this);

}


@JsonSerializable(explicitToJson: true)
class Response_retry_pos_order extends RBBaseResponse{

  List<BeanRetryData>? data;

  Response_retry_pos_order({this.data});

  //添加固定格式
  factory Response_retry_pos_order.fromJson(Map<String, dynamic> json) => _$Response_retry_pos_orderFromJson(json);
  @override
  Map<String, dynamic> toJson() => _$Response_retry_pos_orderToJson(this);

}

@JsonSerializable(explicitToJson: true)
class BeanRetryData{

   bool retrySuccess=false;
   String? retryResult;
   String? id;
   String? fastOrderNo;


   BeanRetryData(
   {this.retrySuccess=false, this.retryResult, this.id, this.fastOrderNo}
       );


   //添加固定格式
   factory BeanRetryData.fromJson(Map<String, dynamic> json) => _$BeanRetryDataFromJson(json);
   Map<String, dynamic> toJson() => _$BeanRetryDataToJson(this);

}



@JsonSerializable(explicitToJson: true)
class Response_check_order extends RBBaseResponse{

  List<BeanCheckOrderData>? data;

  Response_check_order({this.data,super.code,super.msg});

  //添加固定格式
  factory Response_check_order.fromJson(Map<String, dynamic> json) => _$Response_check_orderFromJson(json);
  @override
  Map<String, dynamic> toJson() => _$Response_check_orderToJson(this);

}


@JsonSerializable(explicitToJson: true)
class BeanCheckOrderData{

   String? fastOrderNo;
   String? orderId;
   bool synSuccess=false;
   bool businessSuccess=false;
   String? businessErrorMsg;


   BeanCheckOrderData({this.fastOrderNo, this.orderId, this.synSuccess=false,
     this.businessSuccess=false, this.businessErrorMsg});


   //添加固定格式
  factory BeanCheckOrderData.fromJson(Map<String, dynamic> json) => _$BeanCheckOrderDataFromJson(json);
  Map<String, dynamic> toJson() => _$BeanCheckOrderDataToJson(this);

}